
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@parameter1/mongodb-prop-types
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Common prop type validators using Joi.
yarn add @parameter1/mongodb-prop-types
Prop type schemas.
import { mongoClientProp, mongoCollectionProp, mongoSessionProp } from '@parameter1/mongodb-prop-types';
import { MongoClient } from '@parameter1/mongodb-core';
import Joi from 'joi';
const { attempt } = Joi
const client = new MongoClient('mongodb://some-server:27071');
// valid
attempt(client, mongoClientProp.required());
attempt(client.db('test').collection('foo'), mongoCollectionProp.required());
attempt(client.startSession(), mongoSessionProp.required());
Extending Joi to add objectId
type.
import Joi from 'joi';
import { objectIdType } from '@parameter1/mongodb-prop-types';
Joi.extend(objectIdType);
const someObjectId = new ObjectId();
// valid
attempt(someObjectId, Joi.objectId().required());
FAQs
Common MongoDB prop type validators using Joi.
The npm package @parameter1/mongodb-prop-types receives a total of 43 weekly downloads. As such, @parameter1/mongodb-prop-types popularity was classified as not popular.
We found that @parameter1/mongodb-prop-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.